﻿using ABlog.Domain.Entity.Foundation;

namespace ABlog.Domain.Entity
{
    /// <summary>
    /// 系列
    /// </summary>
    public partial class SeriesEntity : FullAudited
    {
        /// <summary>
        /// 系列名称
        /// </summary>
        public string SeriesName { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        public string Describe { get; set; }

        /// <summary>
        /// 国家Guid
        /// </summary>
        public string CountryGuid { get; set; }

        /// <summary>
        /// 封面
        /// </summary>
        public string Cover { get; set; }

        /// <summary>
        /// 类型Guid
        /// </summary>
        public string TypeGuid { get; set; }

        /// <summary>
        /// 系列数量
        /// </summary>
        public int Count { get; set; }
    }

    /// <summary>
    /// 系列
    /// </summary>
    public partial class SeriesEntity 
    {
        public SeriesEntity() { }

        public SeriesEntity(string userId, string name, string describe, string countryGuid, string cover, string typeGuid) : base(userId)
        {
            SeriesName = name;
            Describe = describe;
            CountryGuid = countryGuid;
            Cover = cover;
            TypeGuid = typeGuid;
            Count = 1;
        }
    }
}
